package com.esdk.sql;

import com.esdk.esdk;
import com.esdk.sql.orm.IRow;
import com.esdk.sql.orm.ParentRow;
import com.esdk.utils.CharAppender;

import java.util.List;

public class DorisDialect extends MysqlDialect{
  public static final String DorisProductVersion="5.7.99";
  public DorisDialect(){
    super(ConnMetaData.DatabaseProductName_MySQL,DorisProductVersion,null);
  }

  @Override
  public StringBuilder parseBatchReplace(String tableName,List<IRow> prs,boolean ignoreRowChanged){
    StringBuilder sb=super.parseBatchReplace(tableName,prs,ignoreRowChanged);
    sb.replace(0,"Replace Into".length(),"Insert Into");
    return sb;
  }
}
